<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<tag:head title="操作成功" ctx="${ctx}"></tag:head>
<tag:body>
	<!-- 左 上 导航 -->
	<tag:nav ctx="${ctx}"></tag:nav>

	<!-- page content -->
	<tag:content title="操作提示">
		<div class="col-xs-12">
			<div class="alert alert-success">
				<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
			</div>
		</div>
		<button type="button" class="btn btn-info">返回</button>
		<div class="clearfix"></div>
	</tag:content>
	<!-- page content -->

	<!-- footer content -->
	<tag:footer></tag:footer>

</tag:body>
<!-- jQuery -->
<script src="${ctx}/assets/js/jquery/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="${ctx}/assets/js/bootstrap/bootstrap.min.js"></script>
<!-- jQuery custom content scroller -->
<script src="${ctx}/assets/js/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
<!-- Custom Theme Scripts -->
<script src="${ctx}/assets/js/custom/custom.min.js"></script>
<!-- Table -->
<script src="${ctx}/assets/js/admin/table/table.js"></script>
<!-- Global funtions -->
<script src="${ctx}/assets/js/global_function/global_function.js"></script>
<script src="${ctx}/assets/js/staff/staff_success/staff_success.js"></script>	<!-- this page-->
<script>
	var $span = $("span.glyphicon");
	$span.text("${requestScope.success}");

	<c:if test="${requestScope.borrowType == 0}">				//借阅成功
		/*更新推荐*/
		/*基于用户的协同过滤*/
		updateUserRecommendation(${requestScope.book.bookId});
		/*基于物品的协同过滤*/
		updateBookRecommendation();
	</c:if>
</script>
</html>
